package com.killer.pojo;

public class MappedStatement {

    //sql的id
    private String id;

    //要执行的sql语句
    private String sql;

    //传入的参数类型
    private Class<?> parameterType;

    //返回的结果类型
    private Class<?> resultType;

    //操作类型 增删改查
    private String opType;

    public MappedStatement(String id, String sql, Class<?> parameterType, Class<?> resultType, String opType) {
        this.id = id;
        this.sql = sql;
        this.parameterType = parameterType;
        this.resultType = resultType;
        this.opType = opType;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public Class<?> getParameterType() {
        return parameterType;
    }

    public void setParameterType(Class<?> parameterType) {
        this.parameterType = parameterType;
    }

    public Class<?> getResultType() {
        return resultType;
    }

    public void setResultType(Class<?> resultType) {
        this.resultType = resultType;
    }

    public String getOpType() {
        return opType;
    }

    public void setOpType(String opType) {
        this.opType = opType;
    }
}
